<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jq/jquery.js"></script>
</head>
<body>
    <!-- <img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fblog%2F202106%2F07%2F20210607182800_34a9b.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1665112754&t=3eb3499d3a169fcbf3c9a8872c22405e" alt=""> -->
    <input type="button" value="发送跨域请求" onclick="sendAjax()">
    <a href="https://www.baidu.com">百度</a>
    <img src="http://127.0.0.1:3000/upload/upload.png" alt="">
    <script>
        function sendAjax(){
            $.ajax({
                url:"http://127.0.0.1:3000/cors/test",
                success:function(data){
                    console.log(data);
                }
            });
        }

    </script>
</body>
</html>